//
//  SMHFriendSectionView.swift
//  SMHCommerce
//
//  Created by lvzhao on 2020/6/6.
//  Copyright © 2020 lvzhao. All rights reserved.
//

import UIKit

class SMHFriendSectionView: LZBaseView {

    override init(viewModel: LZBaseViewModel) {
        super.init(viewModel: viewModel)
        setupUI()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    //MARK:SETUPUI
       func setupUI()  {
           
           //姓名
           let nameLab = UILabel()
           nameLab.font = ktextBoldFont(size: 14)
           nameLab.textColor = UIColorFromHex(rgbValue: 0x363636)
           nameLab.text = "昵称"
           addSubview(nameLab)
           nameLab.snp.makeConstraints { (make) in
               make.left.equalTo(15)
               make.top.equalTo(15)
               make.height.equalTo(15)
               make.width.equalTo(100)
           }
           
           //电话
           let phoneNumLab = UILabel()
           phoneNumLab.font = ktextBoldFont(size: 14)
           phoneNumLab.textColor = UIColorFromHex(rgbValue: 0x363636)
           phoneNumLab.text = "电话"
           addSubview(phoneNumLab)
           phoneNumLab.snp.makeConstraints { (make) in
               make.left.equalTo(nameLab.snp.right).offset(5)
               make.top.equalTo(nameLab)
               make.height.equalTo(15)
               make.width.equalTo(110)
           }
           
           
           //微信
           let wechatNumLab = UILabel()
           wechatNumLab.font = ktextBoldFont(size: 14)
           wechatNumLab.textColor = UIColorFromHex(rgbValue: 0x363636)
           wechatNumLab.text = "微信"
           addSubview(wechatNumLab)
           wechatNumLab.snp.makeConstraints { (make) in
               make.left.equalTo(phoneNumLab.snp.right).offset(5)
               make.top.equalTo(nameLab)
               make.height.equalTo(15)
               make.right.equalTo(-10)
           }

           let lineView = UIView()
           lineView.backgroundColor = UIColorFromHex(rgbValue: 0xE5E5E5)
           addSubview(lineView)
           lineView.snp.makeConstraints { (make) in
               make.left.equalTo(15)
               make.bottom.equalTo(-0.5)
               make.width.equalTo(kScreenWidth - 15)
               make.height.equalTo(0.5)
           }
           
       }
       
}
